package com.huahai.service.impl;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.huahai.entity.Order;
import com.huahai.mapper.OrderMapper;
import com.huahai.service.IOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrderService2 {

    @Autowired
    OrderMapper mapper;

    @SentinelResource("message")//给资源命名
    public int save() {
        return 9527;
    }
}
